package cn.tedu.tea.mapper;

import cn.tedu.tea.domain.GoodsCategory;
import cn.tedu.tea.domain.vo.GoodsCategoryListVO;
import cn.tedu.tea.domain.vo.GoodsCategoryStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodsCategoryMapper {
    int insert(GoodsCategory goodsCategory);
    int deleteById(Integer id);
    int deleteByIds(Integer[] ids);
    int update(GoodsCategory goodsCategory);

    int countByName(String name);
    int countByNameAndNotId(String name, Integer id);

    GoodsCategoryStandardVO getStandardById(Integer id);
    List<GoodsCategoryListVO> list();

}
